package com.dlu.safe_construction.mapper;

import com.dlu.safe_construction.model.Space;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * Created by  lijiaxing on 2022/4/1 8:58
 *
 * @author lijiaxing
 */
public interface SpaceMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Space record);

    int insertSelective(Space record);

    Space selectByPrimaryKey(Integer id);

    Space selectBySpaceId(Integer id);

    int updateByPrimaryKeySelective(Space record);

    int updateByPrimaryKey(Space record);

    int updateBatch(List<Space> list);

    int batchInsert(@Param("list") List<Space> list);

    int batchDeleteByAreaId(String areaId);

    List<Space> selectByAreaId(String areaId);

    List<Space> selectHaveCar();

    List<Space> selectByStatus(Integer status);

    List<Space> selectByCarId(String carId);

    List<Space> selectByCarIds(List<String> carIds);

    int deleteBySpaceIdAndAreaId(Integer spaceId, String areaId);

    int countAllSpace();

    int countSpaceByStatus(Integer status);
}